package com.ssy.lingxi.common.constant.order;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 品类与属性使用方式枚举
 * @author 万宁
 * @version 2.0.0
 * @date 2021-08-10
 */
public enum OrderCatetoryAttributeEnum {
    /**
     * 只允许使用平台品类与属性 - 1
     */
    PLATFORM(1, "只允许使用平台品类与属性");

    OrderCatetoryAttributeEnum(Integer code, String name) {
        this.code = code;
    }

    private Integer code;

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return LanguageHolder.getName(this.getClass(), this.getCode());
    }
}
